<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<title>维修工单信息</title>

<link href="css/public.css" type="text/css" rel="stylesheet">
<!-- jquery -->
<script type="text/javascript" src="../resource/js/jquery-1.11.3.min.js"></script>
<script>
function getQueryString(name) {
	var urlinfo = window.location.href;//获取url
	var userName = urlinfo.split('?')[1].split('=')[1];//拆分url得到”=”后面的参数
	return decodeURI(userName);
 }
$(function(){
	var adr = getQueryString('address');
	$("#theForm  [name='address']").val(adr);
});


</script>
</head>
<body>

<div class="top">
<dl>
<dt><a href="javascript:history.back(-1)"></a></dt>
<dd>返回</dd>
</dl>
</div>
<form action="#" method="post" id="theForm" name="theForm" onsubmit="return sub_dianpu(this)">

<div class="main" style=" padding-bottom:20px;">
<dl class="modify">
<dt><span>姓名</span><input type="text" name="dianpu_name" size="20" value=""></dt>
<dd></dd>
</dl>
<dl class="modify">
<dt><span>联系手机</span><input type="text" name="phone" size="20" value=""></dt>
<dd></dd>
</dl>
<dl class="modify">
<dt><span>故障描述</span><textarea name="dianpu_desc" cols=40 rows=4></textarea></dt>
<dd></dd>
</dl>
<dl class="modify">
<dt><span>我的位置</span><textarea name="address" cols=40 rows=4></textarea></dt>
<dd></dd>
</dl>
<input type="submit" value="确定" class="takeup"/>
<input type="hidden" name="act" value="insert_dianpu" />
</div>
</form>

<div style="height:50px; line-height:50px; clear:both;"></div>
<footer>
<div style="height:50px; line-height:50px; clear:both;"></div>
<div class="v_nav">
<div class="vf_nav" style="display:none">
<ul>
<li> <a href="./">
    <i class="vf_1"></i>
    <span>首页</span></a></li>
<li><a href="#">
    <i class="vf_2"></i>
    <span>客服</span></a></li>
<li><a href="#">
    <i class="vf_3"></i>
    <span>分类</span></a></li>
<li>
<a href="#">
   <em class="global-nav__nav-shop-cart-num" id="ECS_CARTINFO" style="right:9px;"> 0 </em>
   <i class="vf_4"></i>
   <span>购物车</span>
   </a></li>
<li><a href="#">
    <i class="vf_5"></i>
    <span>我的</span></a></li>
</ul>
</div>
</div>
    </footer>
<script type="text/javascript">
function sub_dianpu(frm)
{
	/*var dianpu_name = frm.elements['dianpu_name'].value;
	var dianpu_desc = frm.elements['dianpu_desc'].value;
	if(dianpu_name.length == 0)
	{
		alert('名字不能为空！');
		return false;
	}
	else if(dianpu_name.length > 8)
	{
		alert('店铺名称长度不能超过8个！');
		return false;
	}
	if(dianpu_desc.length == 0)
	{
		alert('店铺简介不能为空！');
		return false;
	}*/
	return true;
}
</script>
</body>
</html>